XML Examples

Provide basic XML output with no embedded source code and no custom formatting:

qacli view -P . -m XML --format ""

This will produce XML with diagnostics looking like:

<Diag id="419">
    <Line>489</Line>
    <Column>1</Column>
    <MsgNum>1090</MsgNum>
    <MsgText> Tab found in source.</MsgText>
</Diag>

To give basic XML output with no embedded source code and default custom formatting:

qacli view -P . -m XML

This will produce XML with diagnostics looking like:

<Diag id="419">
    <Formatted>/home/steve/.config/Perforce/Helix-QAC-2019.1/samples/sample_cgicc_diff-2.4.0</Formatted>
    <Line>489</Line>
    <Column>1</Column>
    <MsgNum>1090</MsgNum>
    <MsgText> Tab found in source.</MsgText>
</Diag>    

To give XML output with only the Line, Column and Message Number:

qacli view -P . -m XML --format "" --xml-format "%l%c%n"

This will produce XML with diagnostics looking like:

<Diag id="419">
    <Line>489</Line>
    <Column>1</Column>
    <MsgNum>1090</MsgNum>
</Diag>